package net.pimpas.operation.persistence.serviceprovider;

import net.pimpas.core.serviceprovider.ServiceProviderFactory;
import net.pimpas.framework.PimpasFramework;

public class OperationPersistenceServiceProviderFactoryImpl implements ServiceProviderFactory<OperationPersistenceServiceProvider<Object>> {
	
	public static OperationPersistenceServiceProvider<Object> getOperationPersistenceServiceProvider(Object... params) {
		return new OperationPersistenceServiceProviderFactoryImpl().getServiceProvider(params);
	}

	@SuppressWarnings("unchecked")
	public OperationPersistenceServiceProvider<Object> getServiceProvider(Object... params) {
		return (OperationPersistenceServiceProvider<Object>) PimpasFramework.getCurrentInstance().getServiceProvider(OperationPersistenceServiceProvider.class, params);
	}
}